/*

QSprite.Form
Copyright (c) Alex Movsisyan

****************************************************************************

****************************************************************************/

.form,
.form fieldset,
.form label,
.form legend {
    margin:0;
    padding: 0;
    border: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
}

.form fieldset {
    margin: 0 0 1.5em 0;
    padding: 1.4em;
}

.form legend	{
    padding: 0.4em;
    font-size:1.2em;
}

.form label {
    float:left;
    width:9em;
    display:block;
    clear:left;
    margin: 0.2em 0 0;
    text-align:left;
    cursor: pointer;
    font-family:"Trebuchet MS",Verdana,Geneva,Arial,Helvetica,Sans-Serif;
}

.form label em {
    color: #f61b30;
}

.form textarea,
.form input[type="file"],
.form input[type="text"],
.form input[type="password"],
.form input[type="search"] {
    border: 1px solid #ccc;
    height: auto;
    padding: 1px 2px;
    margin-bottom: 1em;
    display: block;
}

.form input[type="button"],
.form input[type="submit"] {
    height: auto;
    padding: 1px 2px;
    margin-bottom: 1em;
    display: block;
}

.form input[type="text"],
.form input[type="password"],
.form input[type="search"] {
    height: 1.3em;
}

.form input[type="checkbox"] {
    margin-top: 0.2em;
}

.form input[type="radio"] {
    /*margin-top: 0.1em;*/
    /*margin-right: 0.4em;*/
    /*vertical-align: -5px;*/
    /*margin-top: 6px;*/
}

.form select,
.form input[type="select"] {
    padding: 1px 2px;   
    display: block;
    margin-bottom: 1em;
    margin-right: 0.7em;
    clear: right
}

.form textarea {
    padding: 0 2px;
    line-height: 18px;
    width: 220px;
    height: 100px;
}

.form fieldset {
    border: none; 
    margin: 0; 
    padding: 0; 
}

.form legend {
    color: #333; 
    font-weight: bold;
    font-size: 100%;
    margin: 0;
    padding: 1.5em 0;
}

.form hr {
    clear: right;
}

.form span {
    display: block;
    margin-bottom: 1em;
}

.form span select,
.form span textarea,
.form span input {
    margin-bottom: 0 !important;
    display: inline !important;
}

/* Right aligned labels
---------------------------------------------------------------------------*/

.right-aligned label {
    text-align: right;
    padding-right: 0.5em;
}

/* Top aligned labels
---------------------------------------------------------------------------*/

.top-aligned textarea,
.top-aligned select,
.top-aligned input[type="text"],
.top-aligned input[type="file"],
.top-aligned input[type="password"],
.top-aligned input[type="select"],
.top-aligned input[type="search"] {
    margin-top: 0.4em;
    float: none;
}

.top-aligned label {
    clear: both;
    float: none;
}

/* Test: Highlight elements
---------------------------------------------------------------------------*/

.test fieldset, #test fieldset {
    background: #ddd;
}
